/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package systemsim;

import java.awt.*;
import javax.swing.*;
import java.util.*;

/**
 *
 * @author Carolina
 */
public class GUITables {

    JFrame guiTable;
    Container contentPane;
    private int WIDTH = 1280;
    private int HEIGHT = 700;
    private int numTables;
    private int areasOpen;

   // private HashMap<Group, JPanel> tablesOrder = new HashMap<Group, JPanel>();
    private HashMap<Group, ArrayList<JPanel>> groupsTables = new HashMap<Group, ArrayList<JPanel>>();
    
    private HashMap<Group, ArrayList<Table>> freeTables = new HashMap<Group, ArrayList<Table>>();

    //Seating Areas
    private JPanel area1;
    private JPanel area2;
    private JPanel area3;
    private JPanel area4;
    private JPanel area5;
    private JPanel area6;

    //Tables
    private JPanel Table1;
    private JPanel Table10;
    private JPanel Table11;
    private JPanel Table12;
    private JPanel Table13;
    private JPanel Table14;
    private JPanel Table15;
    private JPanel Table16;
    private JPanel Table17;
    private JPanel Table18;
    private JPanel Table19;
    private JPanel Table2;
    private JPanel Table20;
    private JPanel Table21;
    private JPanel Table22;
    private JPanel Table23;
    private JPanel Table24;
    private JPanel Table25;
    private JPanel Table26;
    private JPanel Table27;
    private JPanel Table28;
    private JPanel Table29;
    private JPanel Table3;
    private JPanel Table30;
    private JPanel Table31;
    private JPanel Table32;
    private JPanel Table33;
    private JPanel Table34;
    private JPanel Table35;
    private JPanel Table36;
    private JPanel Table37;
    private JPanel Table38;
    private JPanel Table39;
    private JPanel Table4;
    private JPanel Table40;
    private JPanel Table41;
    private JPanel Table42;
    private JPanel Table43;
    private JPanel Table44;
    private JPanel Table45;
    private JPanel Table46;
    private JPanel Table47;
    private JPanel Table48;
    private JPanel Table49;
    private JPanel Table5;
    private JPanel Table50;
    private JPanel Table51;
    private JPanel Table52;
    private JPanel Table53;
    private JPanel Table54;
    private JPanel Table55;
    private JPanel Table56;
    private JPanel Table57;
    private JPanel Table58;
    private JPanel Table59;
    private JPanel Table6;
    private JPanel Table60;
    private JPanel Table7;
    private JPanel Table8;
    private JPanel Table9;

    private JPanel[] seatingAreas = {area1, area2, area3, area4, area5, area6};
    private JPanel[] tables = {  Table1, Table10, Table11, Table12, Table13, Table14, Table15, Table16,
      Table17, Table18, Table19, Table2, Table20, Table21, Table22, Table23, Table24, Table25, Table26,
      Table27,      Table28,      Table29,      Table3,      Table30,      Table31,      Table32,
      Table33,       Table34,      Table35,      Table36,      Table37,      Table38,      Table39,
      Table4,      Table40,      Table41,      Table42,      Table43,      Table44,      Table45,
      Table46,     Table47,      Table48,      Table49,      Table5,      Table50,      Table51,
      Table52,      Table53,      Table54,      Table55,      Table56,      Table57,      Table58,
      Table59,      Table6,      Table60,      Table7,      Table8,      Table9};
   // private boolean[] tableAvailable = new boolean[60];
    private Table[] availableTables = new Table[60];

    public GUITables(int numTables)
    {

        this.numTables = numTables;
        areasOpen = numTables/10;
        guiTable = new JFrame("Restaurant");
        guiTable.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        guiTable.setSize(WIDTH,HEIGHT);
        guiTable.setBounds(0,80,WIDTH, HEIGHT);

        contentPane = guiTable.getContentPane();
        //GroupLayout layout = new GroupLayout(contentPane);
        //contentPane.setLayout(layout);
        contentPane.setSize(WIDTH, HEIGHT);


// <editor-fold defaultstate="collapsed" desc="Generated Code">
        seatingAreas[0] = new JPanel();
        tables[9] = new JPanel();
        tables[7] = new JPanel();
        tables[5] = new JPanel();
        tables[3] = new JPanel();
        tables[1] = new JPanel();
        tables[0] = new JPanel();
        tables[2] = new JPanel();
        tables[4] = new JPanel();
        tables[6] = new JPanel();
        tables[8] = new JPanel();
        seatingAreas[1] = new JPanel();
        tables[10] = new JPanel();
        tables[11] = new JPanel();
        tables[12] = new JPanel();
        tables[13] = new JPanel();
        tables[14] = new JPanel();
        tables[15] = new JPanel();
        tables[16] = new JPanel();
        tables[17] = new JPanel();
        tables[18] = new JPanel();
        tables[19] = new JPanel();
        seatingAreas[2] = new JPanel();
        tables[20] = new JPanel();
        tables[21] = new JPanel();
        tables[22] = new JPanel();
        tables[23] = new JPanel();
        tables[24] = new JPanel();
        tables[25] = new JPanel();
        tables[26] = new JPanel();
        tables[27] = new JPanel();
        tables[28] = new JPanel();
        tables[29] = new JPanel();
        seatingAreas[5] = new JPanel();
        tables[50] = new JPanel();
        tables[51] = new JPanel();
        tables[52] = new JPanel();
        tables[53] = new JPanel();
        tables[54] = new JPanel();
        tables[55] = new JPanel();
        tables[56] = new JPanel();
        tables[57] = new JPanel();
        tables[58] = new JPanel();
        tables[59] = new JPanel();
        seatingAreas[3] = new JPanel();
        tables[30] = new JPanel();
        tables[31] = new JPanel();
        tables[32] = new JPanel();
        tables[33] = new JPanel();
        tables[34] = new JPanel();
        tables[35] = new JPanel();
        tables[36] = new JPanel();
        tables[37] = new JPanel();
        tables[38] = new JPanel();
        tables[39] = new JPanel();
        seatingAreas[4] = new JPanel();
        tables[40] = new JPanel();
        tables[41] = new JPanel();
        tables[42] = new JPanel();
        tables[43] = new JPanel();
        tables[44] = new JPanel();
        tables[45] = new JPanel();
        tables[46] = new JPanel();
        tables[47] = new JPanel();
        tables[48] = new JPanel();
        tables[49] = new JPanel();

        //setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        //setBackground(new Color(0, 0, 0));
        //setResizable(false);

        seatingAreas[0].setBackground(new Color(0, 51, 153));
        seatingAreas[0].setPreferredSize(new Dimension(410, 340));

        tables[9].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table10Layout = new GroupLayout(tables[9]);
        tables[9].setLayout(Table10Layout);
        Table10Layout.setHorizontalGroup(
            Table10Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table10Layout.setVerticalGroup(
            Table10Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[7].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table8Layout = new GroupLayout(tables[7]);
        tables[7].setLayout(Table8Layout);
        Table8Layout.setHorizontalGroup(
            Table8Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table8Layout.setVerticalGroup(
            Table8Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[5].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table6Layout = new GroupLayout(tables[5]);
        tables[5].setLayout(Table6Layout);
        Table6Layout.setHorizontalGroup(
            Table6Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table6Layout.setVerticalGroup(
            Table6Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[3].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table4Layout = new GroupLayout(tables[3]);
        tables[3].setLayout(Table4Layout);
        Table4Layout.setHorizontalGroup(
            Table4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table4Layout.setVerticalGroup(
            Table4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[1].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table2Layout = new GroupLayout(tables[1]);
        tables[1].setLayout(Table2Layout);
        Table2Layout.setHorizontalGroup(
            Table2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table2Layout.setVerticalGroup(
            Table2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[0].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table1Layout = new GroupLayout(tables[0]);
        tables[0].setLayout(Table1Layout);
        Table1Layout.setHorizontalGroup(
            Table1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table1Layout.setVerticalGroup(
            Table1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[2].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table3Layout = new GroupLayout(tables[2]);
        tables[2].setLayout(Table3Layout);
        Table3Layout.setHorizontalGroup(
            Table3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table3Layout.setVerticalGroup(
            Table3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[4].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table5Layout = new GroupLayout(tables[4]);
        tables[4].setLayout(Table5Layout);
        Table5Layout.setHorizontalGroup(
            Table5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table5Layout.setVerticalGroup(
            Table5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[6].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table7Layout = new GroupLayout(tables[6]);
        tables[6].setLayout(Table7Layout);
        Table7Layout.setHorizontalGroup(
            Table7Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table7Layout.setVerticalGroup(
            Table7Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[8].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table9Layout = new GroupLayout(tables[8]);
        tables[8].setLayout(Table9Layout);
        Table9Layout.setHorizontalGroup(
            Table9Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table9Layout.setVerticalGroup(
            Table9Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        GroupLayout area1Layout = new GroupLayout(seatingAreas[0]);
        seatingAreas[0].setLayout(area1Layout);
        area1Layout.setHorizontalGroup(
            area1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGap(0, 410, Short.MAX_VALUE)
            .addGroup(area1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(area1Layout.createSequentialGroup()
                        .addComponent(tables[0], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[1], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area1Layout.createSequentialGroup()
                        .addComponent(tables[2], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[3], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area1Layout.createSequentialGroup()
                        .addComponent(tables[4], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[5], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area1Layout.createSequentialGroup()
                        .addComponent(tables[6], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[7], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area1Layout.createSequentialGroup()
                        .addComponent(tables[8], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[9], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        area1Layout.setVerticalGroup(
            area1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGap(0, 340, Short.MAX_VALUE)
            .addGroup(area1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[0], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[1], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[3], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[2], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[4], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[5], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[6], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[7], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[8], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[9], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        seatingAreas[1].setBackground(new Color(0, 51, 153));
        seatingAreas[1].setPreferredSize(new Dimension(415, 340));

        tables[10].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table11Layout = new GroupLayout(tables[10]);
        tables[10].setLayout(Table11Layout);
        Table11Layout.setHorizontalGroup(
            Table11Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table11Layout.setVerticalGroup(
            Table11Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[11].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table12Layout = new GroupLayout(tables[11]);
        tables[11].setLayout(Table12Layout);
        Table12Layout.setHorizontalGroup(
            Table12Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table12Layout.setVerticalGroup(
            Table12Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[12].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table13Layout = new GroupLayout(tables[12]);
        tables[12].setLayout(Table13Layout);
        Table13Layout.setHorizontalGroup(
            Table13Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table13Layout.setVerticalGroup(
            Table13Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[13].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table14Layout = new GroupLayout(tables[13]);
        tables[13].setLayout(Table14Layout);
        Table14Layout.setHorizontalGroup(
            Table14Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table14Layout.setVerticalGroup(
            Table14Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[14].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table15Layout = new GroupLayout(tables[14]);
        tables[14].setLayout(Table15Layout);
        Table15Layout.setHorizontalGroup(
            Table15Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table15Layout.setVerticalGroup(
            Table15Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[15].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table16Layout = new GroupLayout(tables[15]);
        tables[15].setLayout(Table16Layout);
        Table16Layout.setHorizontalGroup(
            Table16Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table16Layout.setVerticalGroup(
            Table16Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[16].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table17Layout = new GroupLayout(tables[16]);
        tables[16].setLayout(Table17Layout);
        Table17Layout.setHorizontalGroup(
            Table17Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table17Layout.setVerticalGroup(
            Table17Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[17].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table18Layout = new GroupLayout(tables[17]);
        tables[17].setLayout(Table18Layout);
        Table18Layout.setHorizontalGroup(
            Table18Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table18Layout.setVerticalGroup(
            Table18Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[18].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table19Layout = new GroupLayout(tables[18]);
        tables[18].setLayout(Table19Layout);
        Table19Layout.setHorizontalGroup(
            Table19Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table19Layout.setVerticalGroup(
            Table19Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[19].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table20Layout = new GroupLayout(tables[19]);
        tables[19].setLayout(Table20Layout);
        Table20Layout.setHorizontalGroup(
            Table20Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table20Layout.setVerticalGroup(
            Table20Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        GroupLayout area2Layout = new GroupLayout(seatingAreas[1]);
        seatingAreas[1].setLayout(area2Layout);
        area2Layout.setHorizontalGroup(
            area2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(area2Layout.createSequentialGroup()
                        .addComponent(tables[10], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[11], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area2Layout.createSequentialGroup()
                        .addComponent(tables[12], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[13], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area2Layout.createSequentialGroup()
                        .addComponent(tables[14], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[15], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area2Layout.createSequentialGroup()
                        .addComponent(tables[16], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[17], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area2Layout.createSequentialGroup()
                        .addComponent(tables[18], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[19], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        area2Layout.setVerticalGroup(
            area2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area2Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[11], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[10], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[12], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[13], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[14], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[15], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[16], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[17], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[18], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[19], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        seatingAreas[2].setBackground(new Color(0, 51, 153));
        seatingAreas[2].setPreferredSize(new Dimension(410, 340));

        tables[20].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table21Layout = new GroupLayout(tables[20]);
        tables[20].setLayout(Table21Layout);
        Table21Layout.setHorizontalGroup(
            Table21Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table21Layout.setVerticalGroup(
            Table21Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[21].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table22Layout = new GroupLayout(tables[21]);
        tables[21].setLayout(Table22Layout);
        Table22Layout.setHorizontalGroup(
            Table22Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table22Layout.setVerticalGroup(
            Table22Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[22].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table23Layout = new GroupLayout(tables[22]);
        tables[22].setLayout(Table23Layout);
        Table23Layout.setHorizontalGroup(
            Table23Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table23Layout.setVerticalGroup(
            Table23Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[23].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table24Layout = new GroupLayout(tables[23]);
        tables[23].setLayout(Table24Layout);
        Table24Layout.setHorizontalGroup(
            Table24Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table24Layout.setVerticalGroup(
            Table24Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[24].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table25Layout = new GroupLayout(tables[24]);
        tables[24].setLayout(Table25Layout);
        Table25Layout.setHorizontalGroup(
            Table25Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table25Layout.setVerticalGroup(
            Table25Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[25].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table26Layout = new GroupLayout(tables[25]);
        tables[25].setLayout(Table26Layout);
        Table26Layout.setHorizontalGroup(
            Table26Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table26Layout.setVerticalGroup(
            Table26Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[26].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table27Layout = new GroupLayout(tables[26]);
        tables[26].setLayout(Table27Layout);
        Table27Layout.setHorizontalGroup(
            Table27Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table27Layout.setVerticalGroup(
            Table27Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[27].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table28Layout = new GroupLayout(tables[27]);
        tables[27].setLayout(Table28Layout);
        Table28Layout.setHorizontalGroup(
            Table28Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table28Layout.setVerticalGroup(
            Table28Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[28].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table29Layout = new GroupLayout(tables[28]);
        tables[28].setLayout(Table29Layout);
        Table29Layout.setHorizontalGroup(
            Table29Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table29Layout.setVerticalGroup(
            Table29Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[29].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table30Layout = new GroupLayout(tables[29]);
        tables[29].setLayout(Table30Layout);
        Table30Layout.setHorizontalGroup(
            Table30Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table30Layout.setVerticalGroup(
            Table30Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        GroupLayout area3Layout = new GroupLayout(seatingAreas[2]);
        seatingAreas[2].setLayout(area3Layout);
        area3Layout.setHorizontalGroup(
            area3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(area3Layout.createSequentialGroup()
                        .addComponent(tables[20], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[21], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area3Layout.createSequentialGroup()
                        .addComponent(tables[22], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[23], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area3Layout.createSequentialGroup()
                        .addComponent(tables[24], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[25], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area3Layout.createSequentialGroup()
                        .addComponent(tables[26], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[27], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area3Layout.createSequentialGroup()
                        .addComponent(tables[28], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[29], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        area3Layout.setVerticalGroup(
            area3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[21], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[20], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area3Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[22], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[23], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[24], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[25], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[26], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[27], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[28], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[29], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        seatingAreas[5].setBackground(new Color(0, 51, 153));
        seatingAreas[5].setPreferredSize(new Dimension(410, 340));

        tables[50].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table51Layout = new GroupLayout(tables[50]);
        tables[50].setLayout(Table51Layout);
        Table51Layout.setHorizontalGroup(
            Table51Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table51Layout.setVerticalGroup(
            Table51Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[51].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table52Layout = new GroupLayout(tables[51]);
        tables[51].setLayout(Table52Layout);
        Table52Layout.setHorizontalGroup(
            Table52Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table52Layout.setVerticalGroup(
            Table52Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[52].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table53Layout = new GroupLayout(tables[52]);
        tables[52].setLayout(Table53Layout);
        Table53Layout.setHorizontalGroup(
            Table53Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table53Layout.setVerticalGroup(
            Table53Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[53].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table54Layout = new GroupLayout(tables[53]);
        tables[53].setLayout(Table54Layout);
        Table54Layout.setHorizontalGroup(
            Table54Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table54Layout.setVerticalGroup(
            Table54Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[54].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table55Layout = new GroupLayout(tables[54]);
        tables[54].setLayout(Table55Layout);
        Table55Layout.setHorizontalGroup(
            Table55Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table55Layout.setVerticalGroup(
            Table55Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[55].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table56Layout = new GroupLayout(tables[55]);
        tables[55].setLayout(Table56Layout);
        Table56Layout.setHorizontalGroup(
            Table56Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table56Layout.setVerticalGroup(
            Table56Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[56].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table57Layout = new GroupLayout(tables[56]);
        tables[56].setLayout(Table57Layout);
        Table57Layout.setHorizontalGroup(
            Table57Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table57Layout.setVerticalGroup(
            Table57Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[57].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table58Layout = new GroupLayout(tables[57]);
        tables[57].setLayout(Table58Layout);
        Table58Layout.setHorizontalGroup(
            Table58Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table58Layout.setVerticalGroup(
            Table58Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[58].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table59Layout = new GroupLayout(tables[58]);
        tables[58].setLayout(Table59Layout);
        Table59Layout.setHorizontalGroup(
            Table59Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table59Layout.setVerticalGroup(
            Table59Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[59].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table60Layout = new GroupLayout(tables[59]);
        tables[59].setLayout(Table60Layout);
        Table60Layout.setHorizontalGroup(
            Table60Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table60Layout.setVerticalGroup(
            Table60Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        GroupLayout area6Layout = new GroupLayout(seatingAreas[5]);
        seatingAreas[5].setLayout(area6Layout);
        area6Layout.setHorizontalGroup(
            area6Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area6Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(area6Layout.createSequentialGroup()
                        .addComponent(tables[50], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[51], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area6Layout.createSequentialGroup()
                        .addComponent(tables[52], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[53], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area6Layout.createSequentialGroup()
                        .addComponent(tables[54], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[55], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area6Layout.createSequentialGroup()
                        .addComponent(tables[56], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[57], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area6Layout.createSequentialGroup()
                        .addComponent(tables[58], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[59], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        area6Layout.setVerticalGroup(
            area6Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area6Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[51], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[50], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area6Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[52], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[53], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area6Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[54], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[55], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area6Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[56], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[57], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area6Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[58], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[59], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        seatingAreas[3].setBackground(new Color(0, 51, 153));
        seatingAreas[3].setPreferredSize(new Dimension(410, 340));

        tables[30].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table31Layout = new GroupLayout(tables[30]);
        tables[30].setLayout(Table31Layout);
        Table31Layout.setHorizontalGroup(
            Table31Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table31Layout.setVerticalGroup(
            Table31Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[31].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table32Layout = new GroupLayout(tables[31]);
        tables[31].setLayout(Table32Layout);
        Table32Layout.setHorizontalGroup(
            Table32Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table32Layout.setVerticalGroup(
            Table32Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[32].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table33Layout = new GroupLayout(tables[32]);
        tables[32].setLayout(Table33Layout);
        Table33Layout.setHorizontalGroup(
            Table33Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table33Layout.setVerticalGroup(
            Table33Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[33].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table34Layout = new GroupLayout(tables[33]);
        tables[33].setLayout(Table34Layout);
        Table34Layout.setHorizontalGroup(
            Table34Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table34Layout.setVerticalGroup(
            Table34Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[34].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table35Layout = new GroupLayout(tables[34]);
        tables[34].setLayout(Table35Layout);
        Table35Layout.setHorizontalGroup(
            Table35Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table35Layout.setVerticalGroup(
            Table35Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[35].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table36Layout = new GroupLayout(tables[35]);
        tables[35].setLayout(Table36Layout);
        Table36Layout.setHorizontalGroup(
            Table36Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table36Layout.setVerticalGroup(
            Table36Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[36].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table37Layout = new GroupLayout(tables[36]);
        tables[36].setLayout(Table37Layout);
        Table37Layout.setHorizontalGroup(
            Table37Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table37Layout.setVerticalGroup(
            Table37Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[37].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table38Layout = new GroupLayout(tables[37]);
        tables[37].setLayout(Table38Layout);
        Table38Layout.setHorizontalGroup(
            Table38Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table38Layout.setVerticalGroup(
            Table38Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[38].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table39Layout = new GroupLayout(tables[38]);
        tables[38].setLayout(Table39Layout);
        Table39Layout.setHorizontalGroup(
            Table39Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table39Layout.setVerticalGroup(
            Table39Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[39].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table40Layout = new GroupLayout(tables[39]);
        tables[39].setLayout(Table40Layout);
        Table40Layout.setHorizontalGroup(
            Table40Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table40Layout.setVerticalGroup(
            Table40Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        GroupLayout area4Layout = new GroupLayout(seatingAreas[3]);
        seatingAreas[3].setLayout(area4Layout);
        area4Layout.setHorizontalGroup(
            area4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(area4Layout.createSequentialGroup()
                        .addComponent(tables[30], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[31], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area4Layout.createSequentialGroup()
                        .addComponent(tables[32], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[33], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area4Layout.createSequentialGroup()
                        .addComponent(tables[34], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[35], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area4Layout.createSequentialGroup()
                        .addComponent(tables[36], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[37], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area4Layout.createSequentialGroup()
                        .addComponent(tables[38], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(tables[39], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        area4Layout.setVerticalGroup(
            area4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[31], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[30], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[32], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[33], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[34], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[35], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area4Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[36], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[37], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area4Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[38], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[39], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        seatingAreas[4].setBackground(new Color(0, 51, 153));
        seatingAreas[4].setPreferredSize(new Dimension(415, 340));

        tables[40].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table41Layout = new GroupLayout(tables[40]);
        tables[40].setLayout(Table41Layout);
        Table41Layout.setHorizontalGroup(
            Table41Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table41Layout.setVerticalGroup(
            Table41Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[41].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table42Layout = new GroupLayout(tables[41]);
        tables[41].setLayout(Table42Layout);
        Table42Layout.setHorizontalGroup(
            Table42Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table42Layout.setVerticalGroup(
            Table42Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[42].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table43Layout = new GroupLayout(tables[42]);
        tables[42].setLayout(Table43Layout);
        Table43Layout.setHorizontalGroup(
            Table43Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table43Layout.setVerticalGroup(
            Table43Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[43].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table44Layout = new GroupLayout(tables[43]);
        tables[43].setLayout(Table44Layout);
        Table44Layout.setHorizontalGroup(
            Table44Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table44Layout.setVerticalGroup(
            Table44Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[44].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table45Layout = new GroupLayout(tables[44]);
        tables[44].setLayout(Table45Layout);
        Table45Layout.setHorizontalGroup(
            Table45Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table45Layout.setVerticalGroup(
            Table45Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[45].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table46Layout = new GroupLayout(tables[45]);
        tables[45].setLayout(Table46Layout);
        Table46Layout.setHorizontalGroup(
            Table46Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table46Layout.setVerticalGroup(
            Table46Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[46].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table47Layout = new GroupLayout(tables[46]);
        tables[46].setLayout(Table47Layout);
        Table47Layout.setHorizontalGroup(
            Table47Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table47Layout.setVerticalGroup(
            Table47Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[47].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table48Layout = new GroupLayout(tables[47]);
        tables[47].setLayout(Table48Layout);
        Table48Layout.setHorizontalGroup(
            Table48Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table48Layout.setVerticalGroup(
            Table48Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[48].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table49Layout = new GroupLayout(tables[48]);
        tables[48].setLayout(Table49Layout);
        Table49Layout.setHorizontalGroup(
            Table49Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table49Layout.setVerticalGroup(
            Table49Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        tables[49].setPreferredSize(new Dimension(185, 58));

        GroupLayout Table50Layout = new GroupLayout(tables[49]);
        tables[49].setLayout(Table50Layout);
        Table50Layout.setHorizontalGroup(
            Table50Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 185, Short.MAX_VALUE)
        );
        Table50Layout.setVerticalGroup(
            Table50Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
            .addGap(0, 58, Short.MAX_VALUE)
        );

        GroupLayout area5Layout = new GroupLayout(seatingAreas[4]);
        seatingAreas[4].setLayout(area5Layout);
        area5Layout.setHorizontalGroup(
            area5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(area5Layout.createSequentialGroup()
                        .addComponent(tables[40], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[41], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area5Layout.createSequentialGroup()
                        .addComponent(tables[42], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[43], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area5Layout.createSequentialGroup()
                        .addComponent(tables[44], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[45], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area5Layout.createSequentialGroup()
                        .addComponent(tables[46], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[47], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(area5Layout.createSequentialGroup()
                        .addComponent(tables[48], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addComponent(tables[49], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        area5Layout.setVerticalGroup(
            area5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(area5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(area5Layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addComponent(tables[41], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[40], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[42], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[43], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[44], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[45], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[46], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[47], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(area5Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(tables[48], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(tables[49], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        GroupLayout layout = new GroupLayout(contentPane);
        contentPane.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(seatingAreas[0], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(seatingAreas[1], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
                        .addComponent(seatingAreas[2], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(seatingAreas[3], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(seatingAreas[4], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
                        .addComponent(seatingAreas[5], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(seatingAreas[1], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(seatingAreas[2], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(seatingAreas[0], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(seatingAreas[4], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(seatingAreas[5], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(seatingAreas[3], GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

// </editor-fold>

        for(int i = 5; i >= areasOpen; i--)
        {
            seatingAreas[i].setVisible(false);
        }

        for(int i = 0; i < 60; i++)
        {
            availableTables[i] = new Table(false);
        }

        guiTable.setVisible(true);

    }



    public synchronized void updateState(Group group)
    {
        
        ArrayList<JPanel> panels = this.groupsTables.get(group);
        
        Iterator<JPanel> iter = panels.iterator();
        
        while(iter.hasNext())
        {
            JPanel curr = iter.next();
            
            if(group.state == Group.Status.WAITINGONFOOD)
            {
                
                
                curr.setBackground(Color.ORANGE);
                ((JLabel)(curr.getComponent(0))).setBackground(Color.ORANGE);
                ((JLabel)(curr.getComponent(1))).setBackground(Color.ORANGE);
                ((JLabel)(curr.getComponent(2))).setBackground(Color.ORANGE);
                ((JLabel)(curr.getComponent(2))).setText(" "+group.state);
                
            }
            else if(group.state == Group.Status.EATING)
            {
                curr.setBackground(Color.RED);
                ((JLabel)(curr.getComponent(0))).setBackground(Color.RED);
                ((JLabel)(curr.getComponent(1))).setBackground(Color.RED);
                ((JLabel)(curr.getComponent(2))).setBackground(Color.RED);
                ((JLabel)(curr.getComponent(2))).setText(" "+group.state);
                     
            }
            
            
        }
        
    }
    

    public synchronized void addTable(Group group)
    {
//        Color color = Color.RED;
//        if(group.getID()%2 == 0)
//        {
//            color = Color.YELLOW;
//        }
        Color color = Color.YELLOW;

        ArrayList<JPanel> tablePanels = new ArrayList<JPanel>();
        //ArrayList<Boolean> occupied = new ArrayList<Boolean>();
        ArrayList<Table> occupied = new ArrayList<Table>();
           //System.out.println(group.getID());
        
        // JPanel[] tables          -60
        // Table[] availableTables  -60
        
        int numOfTablesAcquiredSoFar=0;
        
        for(int i = 0; i < numTables; i++)
        {
            if(!(availableTables[i].isOccupied()))
            {
    
                    tables[i].removeAll();
                    tables[i].setBackground(color);
                    availableTables[i].setOccupied(true);
                    
                    BoxLayout l = new BoxLayout(tables[i], BoxLayout.PAGE_AXIS);
                    tables[i].setLayout(l);

                    JLabel guiGroup = new JLabel("Group: " + group.getID());
                    guiGroup.setSize(185, 17);
                    guiGroup.setBackground(color);
                    guiGroup.setOpaque(true);
                    tables[i].add(guiGroup);
                    
                    
                    guiGroup = new JLabel("Total People in Group: "+group.getNumPeople());
                    guiGroup.setSize(185, 17);
                    guiGroup.setBackground(color);
                    guiGroup.setOpaque(true);   
                    tables[i].add(guiGroup);
                    
                    guiGroup = new JLabel(" "+group.state);
                    guiGroup.setSize(185, 17);
                    guiGroup.setBackground(color);
                    guiGroup.setOpaque(true);
                    tables[i].add(guiGroup);
                    
//                    
//                            JPanel p = new JPanel();
//        p.setSize(80, 80);
//        p.setPreferredSize(new Dimension(80,80));
//        p.setMaximumSize(new Dimension(80,80));
//        BoxLayout l = new BoxLayout(p, BoxLayout.PAGE_AXIS);
//        p.setLayout(l);
                    


                    //Add this table to array list
                    tablePanels.add(tables[i]);
                    occupied.add(availableTables[i]);

                    tables[i].updateUI();
                    tables[i].validate();
                    tables[i].repaint();

                    seatingAreas[i/10].updateUI();
                    seatingAreas[i/10].validate();
                    seatingAreas[i/10].repaint();

                    numOfTablesAcquiredSoFar++;
                    
                    if(numOfTablesAcquiredSoFar >= group.getNumTables())
                    {
                        break;
                    }
                   
           }
         }
         //Add group with its arrayList of JPanels
         this.groupsTables.put(group, tablePanels);
         //this.tableFree.put(group, occupied);
         this.freeTables.put(group, occupied);
        

    }

    public synchronized void removeTable(Group group)
    {

           // Iterator iter = groupsTables.iterator();

           ArrayList<JPanel> groupTables = groupsTables.get(group);

           for(int i = 0; i < groupTables.size(); i++)
           {

               groupTables.get(i).removeAll();
               groupTables.get(i).setBackground(Color.getHSBColor(160, 0, 266));
               groupTables.get(i).setOpaque(true);
               groupTables.get(i).updateUI();
               groupTables.get(i).setVisible(true);
               groupTables.get(i).validate();
               groupTables.get(i).repaint();
           }

           ArrayList<Table> releaseTables = freeTables.get(group);

           for(int i = 0; i < releaseTables.size(); i++)
           {
               releaseTables.get(i).setOccupied(false);
           }

            /*JPanel toRemove;
            toRemove = this.tablesOrder.remove(group);

            for(int i = 0; i < numTables; i++)
            {
                if(toRemove == tables[i])
                {
                    for(int j = 0; j < group.getNumTables(); j++)
                    {
                        tables[i-j].removeAll();
                        tables[i-j].setBackground(Color.getHSBColor(160, 0, 266));
                        tables[i-j].setOpaque(true);
                        tableAvailable[i-j]=true;

                        
                        tables[i-j].updateUI();
                        tables[i-j].setVisible(true);


                        tables[i-j].validate();
                        tables[i-j].repaint();

                        seatingAreas[(i-j)/10].updateUI();
                        seatingAreas[(i-j)/10].validate();
                        seatingAreas[(i-j)/10].repaint();
                        
                     }
                }
            }*/
 


    }

    public static void main(String args[]) {
       /* java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new GUITables(30);
            }
        });*/
    }


}
